package com.demo.rabbitmq.confirm;

import com.rabbitmq.client.ConfirmListener;

import java.io.IOException;

/**
 * @author sc
 * Created on  2018/9/16
 */
public class MyConfirmListener implements ConfirmListener {
    @Override
    public void handleAck(long deliveryTag, boolean multiple) throws IOException {
        System.out.println(deliveryTag+"yes");
    }

    @Override
    public void handleNack(long deliveryTag, boolean multiple) throws IOException {
        System.out.println(deliveryTag+"no");
    }
}
